package interview.algorithms.again_in_interview.designpattern.singleton;

/**
 * @author fance
 * @date 2018/7/19 16:25
 */
public class DCL {
    private volatile static DCL singleTonIII;
    private DCL() {
    }

    public static DCL singleTonIII() {
        if (singleTonIII == null) {

            synchronized (DCL.class) {
                if (singleTonIII == null) {
                    singleTonIII = new DCL();
                }
            }

        }
        return singleTonIII;
    }
}
